package com.api.shopapi.service.impl;


import com.api.shopapi.entity.UserAppInfo;
import com.api.shopapi.mapper.UserAppInfoMapper;
import com.api.shopapi.service.UserAppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("UserAppInfoServiceImplOne")
public class UserAppInfoServiceImpl implements UserAppInfoService {
    @Autowired
    private UserAppInfoMapper userAppInfoMapper;

    @Override
    public int insert(UserAppInfo userAppInfo) {
        return userAppInfoMapper.insert(userAppInfo);
    }

    @Override
    public int delete(String userAppInfoCode) {
        return userAppInfoMapper.delete(userAppInfoCode);
    }

    @Override
    public int update(UserAppInfo userAppInfo) {
        return userAppInfoMapper.update(userAppInfo);
    }

    @Override
    public List<UserAppInfo> getList() {
        return userAppInfoMapper.getList();
    }

    @Override
    public UserAppInfo getByUserAppInfoCode(String userAppInfoCode) {
        return userAppInfoMapper.getByUserAppInfoCode(userAppInfoCode);
    }

    @Override
    public UserAppInfo getByUserCode(String userCode) {
        return userAppInfoMapper.getByUserCode(userCode);
    }
    
}
